
/**
 * copyright(c) 2013 www.jiongshibaoliao.com, All Rights Reserved.
 * project: jiongshibaoliao 
 * author: 曾帅
 * date: 2014-1-10 下午03:43:58
 * version: v1.0
 */

package com.jiongshibaoliao.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.jiongshibaoliao.dao.MoodDao;
import com.jiongshibaoliao.mapper.BaseMapper;
import com.jiongshibaoliao.mapper.MoodMapper;

/**
 * @project jiongshibaoliao
 * @author 曾帅 
 * @version 1.0
 * @date 2014-1-10 下午03:43:58   
 */

@Repository
public class MoodDaoImpl extends BaseDaoImpl implements MoodDao {

	@Autowired
	public MoodMapper moodMapper;

	
	/**
	 * 
	 * @author 曾帅
	 * @version 1.0
	 * @date 2014-1-10 下午09:39:43
	 * @see com.jiongshibaoliao.dao.impl.BaseDaoImpl#getMapper()
	 */
	@Override
	public BaseMapper getMapper() {
		return moodMapper;
	}


	
	/**
	 * 
	 * @author 曾帅
	 * @version 1.0
	 * @date 2014-2-12 下午04:07:50
	 * @see com.jiongshibaoliao.dao.MoodDao#getMoodByArticleId(long)
	 */
	@Override
	public List<Map<String, Object>> getMoodByArticleId(long articleId) {
		return moodMapper.getMoodByArticleId(articleId);
	}
	
}
